package com.kristin.jedis;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
import redis.clients.jedis.Tuple;

import java.util.Set;

public class SingleJedisClient {

    public static void main(String[] args) {
        JedisPoolConfig config = new JedisPoolConfig();
        config.setMaxIdle(8);
        config.setMaxTotal(18);
        JedisPool jedisPool = new JedisPool(config, "127.0.0.1", 6380, 2000);

        try(Jedis jedis = jedisPool.getResource()) {
            jedis.zadd("kristin" , 1682419107549l , "taskn");
            jedis.zadd("kristin" , 3 , "task3");
            jedis.zadd("kristin" , 1 , "task1");
            jedis.zadd("kristin" , 5 , "task5");


        }




    }

}
